<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>家具零售管理系统<%= yield :title %></title>
    <%= stylesheet_link_tag 'application','jquery-ui-1.8.10.custom' %>
    <%= yield :css %>
    <%= yield :stylesheet %>
    <%= javascript_include_tag :defaults %>
    <%= javascript_include_tag 'jquery.center','jquery-ui','autocomplete-rails' %>
    <%= yield :js %>
    <%= yield :javascript %>
    <%= csrf_meta_tag %>        
  </head>
  <body>    
    <div id="integer">
      <div id="head"></div>
      <div id="mainstay">
        <div class="functional">
          <div class="classify">
            <div class="title">
              <span>系统设置</span>
              <%= link_to_function '','',:class => 'button add' %>
            </div>
            <div class="clause">
              <%= link_to '存放仓库', storehouses_url, :title => '仓库基本资料', :class => current_page?(:controller => 'storehouses') ? 'monomer h' : 'monomer'  %>
            </div>
            <div class="clause">
              <%= link_to '销售店面', storefronts_url, :title => '店面基本资料', :class => current_page?(:controller => 'storefronts') ? 'monomer h' : 'monomer'  %>
            </div>
            <div class="clause">
              <%= link_to '企业员工', employees_url, :title => '员工基本资料', :class => current_page?(:controller => 'employees') ? 'monomer h' : 'monomer'  %>
            </div>
          </div>        
          <div class="classify">
            <div class="title">
              <span>基础数据</span>
              <%= link_to_function '','',:class => 'button add' %>
            </div>
            <div class="clause">
              <%= link_to '零售客户', buyers_url, :title => '客户基本资料', :class => current_page?(:controller => 'buyers') ? 'monomer h' : 'monomer'  %>
            </div>
            <div class="clause">
              <%= link_to '品牌工厂', factories_url, :title => '工厂基本资料', :class => current_page?(:controller => 'factories') ? 'monomer h' : 'monomer'  %>
            </div>
            <div class="clause">
              <%= link_to '相关材质', materials_url, :title => '材料基本资料', :class => current_page?(:controller => 'materials') ? 'monomer h' : 'monomer'  %>
            </div>
            <div class="clause">
              <%= link_to '家具款式', furniture_styles_url, :title => '家具款式基本资料', :class => current_page?(:controller => 'furniture_styles') ? 'monomer h' : 'monomer'  %>
            </div>
          </div>
          <div class="classify">
            <div class="title">
              <span>销售管理</span>
              <%= link_to_function '','',:class => 'button add' %>
            </div>
            <div class="clause">
              <%= link_to '订单查询', orders_url, :title => '查询跟踪所有的顾客订单', :class => (is_current_page?(:controller => 'orders', :action => 'index') or is_current_page?(:controller => 'orders', :action => 'show')) && params[:target].blank? ? 'monomer h' : 'monomer'  %>
            </div>
            <div class='clause'>
              <%= link_to orders_url, :title => '编辑中的所有订单', :class => 'sub_monomer' do  %>
              <span>编辑中</span><b>11</b>
              <% end %>
            </div>
            <div class='clause'>
              <%= link_to orders_url, :title => '未完全安装完的订单', :class => 'sub_monomer uncompleted' do  %>
              <span>未完成</span><b>11</b>
              <% end %>
            </div>
            <div class="clause">
              <%= link_to '顾客预订', orders_url, :method => :post, :title => '顾客在店面预订了家具并交纳了订金', :class => is_current_page?(:controller => 'orders', :action => 'edit') ? 'monomer h' : 'monomer'  %>
            </div>
          </div>
          <div class="classify">
            <div class="title">
              <span>上门安装</span>
              <%= link_to_function '','',:class => 'button add' %>
            </div>
            <div class="clause">
              <%= link_to '安装查询', installations_url, :title => '查询跟踪所有的上门安装的派工情况', :class => is_current_page?(:controller => 'installations', :action => 'index', :target => nil) ? 'monomer h' : 'monomer'  %>
            </div>
            <div class='clause'>
              <%= link_to orders_url, :title => '编辑中的所有订单', :class => 'sub_monomer' do  %>
              <span>编辑中</span><b>11</b>
              <% end %>
            </div>
            <div class='clause'>
              <%= link_to orders_url, :title => '未完全安装完的订单', :class => 'sub_monomer uncompleted' do  %>
              <span>派工中</span><b>11</b>
              <% end %>
            </div>
            <div class='clause'>
              <%= link_to orders_url, :title => '未完全安装完的订单', :class => 'sub_monomer after_serviced' do  %>
              <span>售后</span><b>11</b>
              <% end %>
            </div>
            <div class="clause">
              <%= link_to '下派工单', orders_url(:target => 'being_installed'), :title => '安排安装工上门安装', :class => is_current_page?( :controller => 'installations', :action => 'edit') ? 'monomer h' : 'monomer'  %>
            </div>
            <div class='clause'>
              <%= link_to orders_url(:target => 'being_installed'), :title => '未完全安装完的订单', :class => is_current_page?(:controller => 'orders', :target => 'being_installed') ? 'sub_h sub_monomer being_sent_to_installer' : 'sub_monomer being_sent_to_installer' do  %>
              <span>待派工</span><b>11</b>
              <% end %>
            </div>
          </div>
          <div class="classify">
            <div class="title">
              <span>厂家订做</span>
              <%= link_to_function '','',:class => 'button add' %>
            </div>
            <div class="clause">
              <%= link_to '订单查询', order_mades_url, :title => '查询跟踪所有的厂家订做情况', :class => is_current_page?(:controller => 'order_mades', :action => 'index') && params[:target].blank? ? 'monomer h' : 'monomer'  %>
            </div>
            <div class='clause'>
              <%= link_to orders_url, :title => '编辑中的所有订单', :class => 'sub_monomer' do  %>
              <span>编辑中</span><b>11</b>
              <% end %>
            </div>
            <div class='clause'>
              <%= link_to orders_url, :title => '订做中的订单', :class => 'sub_monomer being_order_made ' do  %>
              <span>订做中</span><b>11</b>
              <% end %>
            </div>
            <div class='clause'>
              <%= link_to orders_url, :title => '订做数与入库数不一致的订单', :class => 'sub_monomer enter_exception' do  %>
              <span>入库异常</span><b>11</b>
              <% end %>
            </div>
            <div class='clause'>
              <%= link_to orders_url, :title => '订做超期的订单', :class => 'sub_monomer date_out' do  %>
              <span>超期未收货</span><b>11</b>
              <% end %>
            </div>
            <div class="clause">
              <%= link_to '下订做单', new_order_made_url, :title => '安排厂家订做', :class => is_current_page?(:controller => 'order_mades', :action => 'new') ? 'monomer h' : 'monomer'   %>
            </div>
            <div class='clause'>
              <%= link_to new_order_made_url, :title => '安排厂家订做', :class => 'sub_monomer being_sent_to_factory' do  %>
              <span>待订做</span><b>11</b>
              <% end %>
            </div>
          </div>
          <div class="classify">
            <div class="title">
              <span>库存管理</span>
              <%= link_to_function '','',:class => 'button add' %>
            </div>
            <div class="clause">
              <%= link_to '库存查询', furniture_logistic_stats_url, :title => '所有店面,仓库的家具库存情况', :class => current_page?(:controller => 'furniture_logistic_stats') ? 'monomer h' : 'monomer'  %>
            </div>
            <div class="clause">
              <%= link_to '订做入库', order_mades_url(:target => 'being_entered'), :title => '工厂订货入库登记', :class => current_page?(:controller => 'order_mades', :target => 'being_entered') ? 'monomer h' : 'monomer'  %>
            </div>
            <div class="clause">
              <%= link_to '内部调货', buyers_url, :title => '仓库,店面之间的相互调货', :class =>  'monomer'  %>
            </div>
            <div class="clause">
              <%= link_to '损耗登记', buyers_url, :title => '家具的非销售性的损耗,如丢失,损坏等', :class =>  'monomer'  %>
            </div>
          </div>
        </div>
        <div class="display">          
          <%= render 'layouts/modal_form.html' %>
          <%= yield %>          
        </div>
      </div>
      <div id="bottom"></div>
    </div>
  </body>
</html>
